import styled from "styled-components";

const OwnStyle = styled.div`
    .title {
        margin-bottom: 20px;
        color: rgba(0, 0, 0, 0.88);
        font-weight: 600;
        font-size: 20px;
    }

    textarea {
        width: 70%;
    }

    .user_avatar_upload {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-top: 30px;

        .avatar {
            position: absolute;
            left: 5px;
            top: 5px;
            width: calc(100% - 10px);
            height: calc(100% - 10px);
            background: #ffffff;
            z-index: 2;
            border-radius: 50%;
            overflow: hidden;
            box-sizing: border-box;

            .ant-image {
                height: 100%;

                img {
                    height: 100%;
                }
            }

            span {
                color: rgba(0, 0, 0, 0.88);
                font-size: 14px;
            }
        }

        .ant-upload {
            padding: 10px;
        }
    }

    @keyframes div3Rotate {
        100% {
            transform: rotate(360deg);
        }
    }

    .avater-wrapper {
        width: 120px;
        height: 120px;
        position: relative;
        overflow: hidden;
        border-radius: 50%;
        margin-bottom: 50px;
        padding: 10px;

        &::after {
            content: "";
            position: absolute;
            left: -50%;
            top: -50%;
            width: 200%;
            height: 200%;
            background-repeat: no-repeat;
            background-size: 50% 50%, 50% 50%;
            background-position: 0 0, 100% 0, 100% 100%, 0 100%;
            background-image: linear-gradient(#a8edea, #fed6e3),
            linear-gradient(#c4fdf8, #fbc2eb),
            linear-gradient(#fbc2eb, #a6c1ee),
            linear-gradient(-225deg, #ffe6ed 0%, #eaccf8 48%, #aea9d6 100%);
            animation: div3Rotate 4s linear infinite;
        }
    }
`;

export default OwnStyle;
